package com.funong.matrix.biz.system.facade.impl;

import com.funong.matrix.biz.base.entity.SysLogEntity;
import com.funong.matrix.biz.system.domain.SysLogDomainDao;
import com.funong.matrix.biz.system.facade.SysLogFacade;
import com.funong.matrix.biz.system.pojo.qo.SysLogQO;
import com.funong.matrix.core.dto.QueryDTO;
import com.funong.matrix.core.dto.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author : NaNa
 * @since : 2023-05-23 18:34
 **/
@Slf4j
@Service
public class SysLogFacadeImpl implements SysLogFacade {
    @Resource
    private SysLogDomainDao logDomainDao;

    @Override
    public void saveSystemLogInfo(SysLogEntity logEntity) {
        logDomainDao.saveSystemLogInfo(logEntity);
    }

    @Override
    public Result querySysLogByCondition(QueryDTO<SysLogQO> queryDTO) {
        return logDomainDao.querySysLogByCondition(queryDTO);
    }
}
